#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Quantity.h>
#include <VolumeUnit.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(VolumeUnit)
{
        TEST(should be able to compare TSP with TBSP)
        {
                Volume tsp  (3, TSP);
                Volume tbsp (1, TBSP);
              
                ASSERT_TRUE (tsp == tbsp);
        }
        
        TEST(should be able to compare OZ with TBSP)
        {
                Volume oz (1, OZ);
                Volume tbsp (2, TBSP);

                ASSERT_TRUE (oz == tbsp);
        }

        TEST(should be able to add TSP with TBSP)
        {
                Volume oz  (2, OZ);
                Volume tsp (6, TSP);
                Volume tbsp (2, TBSP);

                ASSERT_TRUE (oz == (tbsp + tsp));
        }
};
